package com.tmzn.jwt.bean;

import lombok.Data;

import java.util.*;

@Data
/**
 * 缓存到redis的用户对象
 */
public class MyIJwtAble  implements IJwtAble {

	private int id;
	
	private String tel;

	private List<String> roles;

	private Map<String,Object> map = new HashMap<>();

	public void set(String key,Object obj){
		map.put(key,obj);
	}

	public <T> T get(String key){
		return (T)map.get(key);
	}
}
